//
//  S1mpl3TableViewHeadView.m
//  沙哈拉FM
//
//  Created by dllo on 15/11/5.
//  Copyright © 2015年 S1mpl3. All rights reserved.
//

#import "S1mpl3TableViewHeadView.h"
#import "FitHeader.h"

@implementation S1mpl3TableViewHeadView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _totalLabel = [[BaseLabel alloc] initWithFrame:CGRectMake(10 * FITWidth, 0, 70 * FITWidth, 40 * FITHeight)];
        [_totalLabel setFontSize:12];
        _totalLabel.textColor = [UIColor lightGrayColor];
        
        _albumImageView = [[UIImageView alloc] initWithFrame:CGRectMake(235 * FITWidth, _totalLabel.frame.origin.y + 12 * FITHeight, 15 * FITHeight, 15 * FITHeight)];
        _albumImageView.image = [UIImage imageNamed:@"S1mpl3选集"];
        _chooseLabel = [[BaseLabel alloc] initWithFrame:CGRectMake(_albumImageView.frame.origin.x + _albumImageView.frame.size.width + 5 * FITWidth, _totalLabel.frame.origin.y, 45 * FITWidth, _totalLabel.frame.size.height)];
        _chooseLabel.text = @"选集";
        [_chooseLabel setFontSize:14];
        
        _sortLabel = [[BaseLabel alloc] initWithFrame:CGRectMake(_chooseLabel.frame.origin.x + _chooseLabel.frame.size.width, _totalLabel.frame.origin.y, _chooseLabel.frame.size.width, _chooseLabel.frame.size.height)];
        _sortLabel.textAlignment = 2;
        _sortLabel.text = @"排序";
        [_sortLabel setFontSize:14];
        
        _sortImageView = [[UIImageView alloc] initWithFrame:CGRectMake(_sortLabel.frame.origin.x + _sortLabel.frame.size.width + 5 * FITWidth, _albumImageView.frame.origin.y, _albumImageView.frame.size.width, _albumImageView.frame.size.height)];
        _sortImageView.image = [UIImage imageNamed:@"S1mpl3下箭头"];
        [self addSubview:_totalLabel];
        [self addSubview:_albumImageView];
        [self addSubview:_chooseLabel];
        [self addSubview:_sortLabel];
        [self addSubview:_sortImageView];
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
